CC := gcc
FLAGS :=-Wall -o
CFLAGS := -Wall -c -o 
OBJS := server client
TARGET := server.o client.o 
SRC := server.c client.c
all:$(OBJS)

server:server.o 
	$(CC) $< $(FLAGS) $@ -lpthread

client:client.o
	$(CC) $< $(FLAGS) $@ -lpthread

%.o:%.c 
	$(CC) $< $(CFLAGS) $@ 

.PHONY:clean

clean:
	rm *.o $(OBJS)